<template>
  <view>
     <view v-if="isout==1">
      <image :src="imgUrl+'/carSale/empty.png'" class="emptyImg"  mode="widthFix"/>
      <view class="text-p1" style="color:#9B9B9B">活动已失效 </view>
      <view class="text-p1" style="color:#9B9B9B">正在跳转至最新活动…</view>
    </view>
    <view v-else>
      <image :src="imgUrl+'/carSale/empty2.png'" class="emptyImg" mode="widthFix" />
      <view class="text-p1" style="font-weight:600;padding-bottom:8px">您的资料提交成功!</view>
      <view class="text-p1">建业车管家将及时与您联系，感谢您的关注!</view>
      <view class="btn" @tap="goBack">确定</view>
    </view>
  </view>
</template>
<script>
import Taro from "@tarojs/taro";
import "./result.less";
export default {
  data() {
    return {
      isout:'',
      imgUrl: process.env.IOParking.IMG_URL, //静态资源图片
      shareId:null
    };
  },
  onLoad: function(options) {
    this.isout=options.isout
    this.shareId=options.shareId
    if(this.isout==1){
      this.goBack()
    }
  },
  methods: {
    goBack() {
      if(this.shareId){
          Taro.reLaunch({
            url: "../carSale/home?shareId="+this.shareId
          });
      }else{
      Taro.reLaunch({
        url: "../carSale/home"
      });
      }
    }
  }
};
</script>

